﻿@model IEnumerable<CloudFranceTriple.Models.ForumAnnonceSet>

@{
    ViewBag.Title = CloudFranceTriple.WebRole.Properties.Resources.AnnoncementIndexTitle;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="content-padding">
    <h1>
        @CloudFranceTriple.WebRole.Properties.Resources.AnnoncementIndexTitle
    </h1>
    <section>
        <p>
            @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.ButtonCreate, "Create")
        </p>
        @foreach (var item in Model)
        {
            <table style="border: 1px solid #fffffe; padding: 10px; margin: 10px;">
                <tr>
                    <td colspan="9">
                        @Html.DisplayTextFor(modelItem => item.Text)
                    </td>
                </tr>
                <tr>
                    <th>
                        @CloudFranceTriple.WebRole.Properties.Resources.AnnoncementShowOnHeader
                    </th>
                    <th>
                        @CloudFranceTriple.WebRole.Properties.Resources.AnnoncementShowOnPortail
                    </th>
                    <th>
                        @CloudFranceTriple.WebRole.Properties.Resources.AnnoncementShowOnForum
                    </th>
                    <th>
                        @CloudFranceTriple.WebRole.Properties.Resources.AnnoncementShowOnTopic
                    </th>
                    <th>
                        @CloudFranceTriple.WebRole.Properties.Resources.AnnoncementShowOnPost
                    </th>
                    <th>
                        @CloudFranceTriple.WebRole.Properties.Resources.AnnoncementDateBegin
                    </th>
                    <th>
                        @CloudFranceTriple.WebRole.Properties.Resources.AnnoncementDateEnd
                    </th>
                    <th>
                        @CloudFranceTriple.WebRole.Properties.Resources.AnnoncementOrder
                    </th>
                    <th></th>
                </tr>
                <tr>
                    <td>
                        @Html.DisplayFor(modelItem => item.ShowOnHeader)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.ShowOnPortail)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.ShowOnForum)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.ShowOnTopic)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.ShowOnPost)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.DateBegin, "TemplateUserDate")
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.DateEnd, "TemplateUserDate")
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Order)
                    </td>
                    <td>
                        @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.ButtonEdit, "Edit", new { id = item.Id }) |
                        @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.ButtonDelete, "Delete", new { id = item.Id })
                    </td>
                </tr>
            </table>
        }
        <br />
    </section>
</div>
